let path = require("path");
// path.resolve获得相对路径的绝对路径计算
console.log(path.resolve("test.js"));
// D:\上课录频\node代码\learn-node\test.js
console.log(path.resolve("/test","test.js"));
//\test\test.js
let result = path.parse('../../1.c3h5/day01/1.选择器.html');
console.log(result);
// {
//     root: '',
//     dir: '../../1.c3h5/day01',
//     base: '1.选择器.html',
//     ext: '.html',
//     name: '1.选择器'
//   }